package com.yc.tc.beans;

import java.io.Serializable;

/**
 * 景点主题
 * 
 * @author Henry
 * 
 */
public class JdThemeInfo implements Serializable {
	private static final long serialVersionUID = 1L;

	private int jtid; // 编号
	private String tname; // 类型
	private String temp;
	private String flag;

	@Override
	public String toString() {
		return "JdThemeInfo [jtid=" + jtid + ", tname=" + tname + ", temp="
				+ temp + ", flag=" + flag + "]";
	}

	public int getJtid() {
		return jtid;
	}

	public void setJtid(int jtid) {
		this.jtid = jtid;
	}

	public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

	public String getTemp() {
		return temp;
	}

	public void setTemp(String temp) {
		this.temp = temp;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((flag == null) ? 0 : flag.hashCode());
		result = prime * result + jtid;
		result = prime * result + ((temp == null) ? 0 : temp.hashCode());
		result = prime * result + ((tname == null) ? 0 : tname.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		JdThemeInfo other = (JdThemeInfo) obj;
		if (flag == null) {
			if (other.flag != null)
				return false;
		} else if (!flag.equals(other.flag))
			return false;
		if (jtid != other.jtid)
			return false;
		if (temp == null) {
			if (other.temp != null)
				return false;
		} else if (!temp.equals(other.temp))
			return false;
		if (tname == null) {
			if (other.tname != null)
				return false;
		} else if (!tname.equals(other.tname))
			return false;
		return true;
	}

}
